home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / IAC Tools / iactable.c < prev    next >
MacBinary  |  1993-06-09  |  2.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Jun 9 15:23:13 1993, modified Wed Jun 9 15:23:13 1993, creator Think C, type ASCII, 1409 bytes "iactable.c" , at 0x601 402 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 69 61 63 74 61 62 | 6c 65 2e 63 00 00 00 00 |..iactab|le.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 81 00 | 00 01 92 a8 3b e9 21 a8 |........|....;.!.|
|00000060| 3b e9 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 97 0d 00 00 |........|........|
|00000080| 0d 2f 2a a9 20 43 6f 70 | 79 72 69 67 68 74 20 31 |./*. Cop|yright 1|
|00000090| 39 38 38 2d 31 39 39 33 | 20 55 73 65 72 4c 61 6e |988-1993| UserLan|
|000000a0| 64 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |d Softwa|re, Inc.|
|000000b0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res|
|000000c0| 65 72 76 65 64 2e 2a 2f | 0d 0d 23 69 6e 63 6c 75 |erved.*/|..#inclu|
|000000d0| 64 65 20 22 69 61 63 69 | 6e 74 65 72 6e 61 6c 2e |de "iaci|nternal.|
|000000e0| 68 22 0d 0d 0d 23 64 65 | 66 69 6e 65 20 74 79 70 |h"...#de|fine typ|
|000000f0| 65 54 61 62 6c 65 20 27 | 74 61 62 6c 27 0d 0d 0d |eTable '|tabl'...|
|00000100| 42 6f 6f 6c 65 61 6e 20 | 49 41 43 70 75 73 68 74 |Boolean |IACpusht|
|00000110| 61 62 6c 65 70 61 72 61 | 6d 20 28 48 61 6e 64 6c |ablepara|m (Handl|
|00000120| 65 20 76 61 6c 2c 20 4f | 53 54 79 70 65 20 6b 65 |e val, O|SType ke|
|00000130| 79 77 6f 72 64 29 20 7b | 0d 0d 09 72 65 74 75 72 |yword) {|...retur|
|00000140| 6e 20 28 49 41 43 70 75 | 73 68 62 69 6e 61 72 79 |n (IACpu|shbinary|
|00000150| 70 61 72 61 6d 20 28 76 | 61 6c 2c 20 74 79 70 65 |param (v|al, type|
|00000160| 54 61 62 6c 65 2c 20 6b | 65 79 77 6f 72 64 29 29 |Table, k|eyword))|
|00000170| 3b 0d 09 7d 20 2f 2a 49 | 41 43 70 75 73 68 74 61 |;..} /*I|ACpushta|
|00000180| 62 6c 65 70 61 72 61 6d | 2a 2f 0d 0d 0d 42 6f 6f |bleparam|*/...Boo|
|00000190| 6c 65 61 6e 20 49 41 43 | 72 65 74 75 72 6e 74 61 |lean IAC|returnta|
|000001a0| 62 6c 65 20 28 48 61 6e | 64 6c 65 20 78 29 20 7b |ble (Han|dle x) {|
|000001b0| 0d 0d 09 72 65 74 75 72 | 6e 20 28 49 41 43 72 65 |...retur|n (IACre|
|000001c0| 74 75 72 6e 62 69 6e 61 | 72 79 20 28 78 2c 20 74 |turnbina|ry (x, t|
|000001d0| 79 70 65 54 61 62 6c 65 | 29 29 3b 0d 09 7d 20 2f |ypeTable|));..} /|
|000001e0| 2a 49 41 43 72 65 74 75 | 72 6e 74 61 62 6c 65 2a |*IACretu|rntable*|
|000001f0| 2f 0d 09 0d 09 0d 42 6f | 6f 6c 65 61 6e 20 49 41 |/.....Bo|olean IA|
|00000200| 43 67 65 74 74 61 62 6c | 65 70 61 72 61 6d 20 28 |Cgettabl|eparam (|
|00000210| 4f 53 54 79 70 65 20 6b | 65 79 77 6f 72 64 2c 20 |OSType k|eyword, |
|00000220| 48 61 6e 64 6c 65 20 2a | 68 62 69 6e 61 72 79 29 |Handle *|hbinary)|
|00000230| 20 7b 0d 09 0d 09 4f 53 | 54 79 70 65 20 62 69 6e | {....OS|Type bin|
|00000240| 61 72 79 74 79 70 65 3b | 0d 09 0d 09 69 66 20 28 |arytype;|....if (|
|00000250| 21 49 41 43 67 65 74 62 | 69 6e 61 72 79 70 61 72 |!IACgetb|inarypar|
|00000260| 61 6d 20 28 6b 65 79 77 | 6f 72 64 2c 20 68 62 69 |am (keyw|ord, hbi|
|00000270| 6e 61 72 79 2c 20 26 62 | 69 6e 61 72 79 74 79 70 |nary, &b|inarytyp|
|00000280| 65 29 29 0d 09 09 72 65 | 74 75 72 6e 20 28 66 61 |e))...re|turn (fa|
|00000290| 6c 73 65 29 3b 0d 09 0d | 09 69 66 20 28 62 69 6e |lse);...|.if (bin|
|000002a0| 61 72 79 74 79 70 65 20 | 21 3d 20 74 79 70 65 54 |arytype |!= typeT|
|000002b0| 61 62 6c 65 29 20 7b 0d | 09 09 0d 09 09 44 69 73 |able) {.|.....Dis|
|000002c0| 70 6f 73 48 61 6e 64 6c | 65 20 28 2a 68 62 69 6e |posHandl|e (*hbin|
|000002d0| 61 72 79 29 3b 0d 09 09 | 0d 09 09 2a 68 62 69 6e |ary);...|...*hbin|
|000002e0| 61 72 79 20 3d 20 6e 69 | 6c 3b 0d 09 09 0d 09 09 |ary = ni|l;......|
|000002f0| 49 41 43 70 61 72 61 6d | 65 72 72 6f 72 20 28 31 |IACparam|error (1|
|00000300| 2c 20 22 5c 70 74 61 62 | 6c 65 22 2c 20 6b 65 79 |, "\ptab|le", key|
|00000310| 77 6f 72 64 29 3b 0d 09 | 09 0d 09 09 72 65 74 75 |word);..|....retu|
|00000320| 72 6e 20 28 66 61 6c 73 | 65 29 3b 0d 09 09 7d 0d |rn (fals|e);...}.|
|00000330| 09 0d 09 72 65 74 75 72 | 6e 20 28 74 72 75 65 29 |...retur|n (true)|
|00000340| 3b 0d 09 7d 20 2f 2a 49 | 41 43 67 65 74 74 61 62 |;..} /*I|ACgettab|
|00000350| 6c 65 70 61 72 61 6d 2a | 2f 0d 09 0d 0d 42 6f 6f |leparam*|/....Boo|
|00000360| 6c 65 61 6e 20 49 41 43 | 67 65 74 74 61 62 6c 65 |lean IAC|gettable|
|00000370| 69 74 65 6d 20 28 41 45 | 44 65 73 63 4c 69 73 74 |item (AE|DescList|
|00000380| 20 2a 6c 69 73 74 2c 20 | 6c 6f 6e 67 20 6e 2c 20 | *list, |long n, |
|00000390| 48 61 6e 64 6c 65 20 2a | 76 61 6c 29 20 7b 0d 09 |Handle *|val) {..|
|000003a0| 0d 09 72 65 67 69 73 74 | 65 72 20 4f 53 45 72 72 |..regist|er OSErr|
|000003b0| 20 65 63 3b 0d 09 41 45 | 44 65 73 63 20 64 65 73 | ec;..AE|Desc des|
|000003c0| 63 3b 0d 09 44 65 73 63 | 54 79 70 65 20 6b 65 79 |c;..Desc|Type key|
|000003d0| 3b 0d 09 53 69 7a 65 20 | 61 63 74 75 61 6c 53 69 |;..Size |actualSi|
|000003e0| 7a 65 3b 0d 09 0d 09 69 | 66 20 28 28 2a 6c 69 73 |ze;....i|f ((*lis|
|000003f0| 74 29 2e 64 65 73 63 72 | 69 70 74 6f 72 54 79 70 |t).descr|iptorTyp|
|00000400| 65 20 21 3d 20 74 79 70 | 65 41 45 4c 69 73 74 29 |e != typ|eAEList)|
|00000410| 20 7b 0d 09 0d 09 09 65 | 63 20 3d 20 41 45 47 65 | {.....e|c = AEGe|
|00000420| 74 4b 65 79 44 65 73 63 | 20 28 6c 69 73 74 2c 20 |tKeyDesc| (list, |
|00000430| 6e 2c 20 74 79 70 65 54 | 61 62 6c 65 2c 20 26 64 |n, typeT|able, &d|
|00000440| 65 73 63 29 3b 0d 09 09 | 0d 09 09 69 66 20 28 65 |esc);...|...if (e|
|00000450| 63 20 21 3d 20 65 72 72 | 41 45 44 65 73 63 4e 6f |c != err|AEDescNo|
|00000460| 74 46 6f 75 6e 64 29 0d | 09 09 09 67 6f 74 6f 20 |tFound).|...goto |
|00000470| 64 6f 6e 65 3b 0d 09 09 | 7d 0d 0d 09 65 63 20 3d |done;...|}...ec =|
|00000480| 20 41 45 47 65 74 4e 74 | 68 44 65 73 63 20 28 6c | AEGetNt|hDesc (l|
|00000490| 69 73 74 2c 20 6e 2c 20 | 74 79 70 65 54 61 62 6c |ist, n, |typeTabl|
|000004a0| 65 2c 20 26 6b 65 79 2c | 20 26 64 65 73 63 29 3b |e, &key,| &desc);|
|000004b0| 0d 09 0d 09 64 6f 6e 65 | 3a 0d 09 0d 09 49 41 43 |....done|:....IAC|
|000004c0| 67 6c 6f 62 61 6c 73 2e | 65 72 72 6f 72 63 6f 64 |globals.|errorcod|
|000004d0| 65 20 3d 20 65 63 3b 0d | 09 0d 09 69 66 20 28 65 |e = ec;.|...if (e|
|000004e0| 63 20 3d 3d 20 6e 6f 45 | 72 72 29 20 7b 0d 09 0d |c == noE|rr) {...|
|000004f0| 09 09 2a 76 61 6c 20 3d | 20 64 65 73 63 2e 64 61 |..*val =| desc.da|
|00000500| 74 61 48 61 6e 64 6c 65 | 3b 0d 09 09 0d 09 09 72 |taHandle|;......r|
|00000510| 65 74 75 72 6e 20 28 74 | 72 75 65 29 3b 0d 09 09 |eturn (t|rue);...|
|00000520| 7d 0d 09 65 6c 73 65 20 | 7b 0d 09 09 2a 76 61 6c |}..else |{...*val|
|00000530| 20 3d 20 4e 55 4c 4c 3b | 0d 09 09 0d 09 09 72 65 | = NULL;|......re|
|00000540| 74 75 72 6e 20 28 66 61 | 6c 73 65 29 3b 0d 09 09 |turn (fa|lse);...|
|00000550| 7d 0d 09 7d 20 2f 2a 49 | 41 43 67 65 74 74 61 62 |}..} /*I|ACgettab|
|00000560| 6c 65 69 74 65 6d 2a 2f | 0d 09 0d 0d 42 6f 6f 6c |leitem*/|....Bool|
|00000570| 65 61 6e 20 49 41 43 70 | 75 73 68 74 61 62 6c 65 |ean IACp|ushtable|
|00000580| 69 74 65 6d 20 28 41 45 | 44 65 73 63 4c 69 73 74 |item (AE|DescList|
|00000590| 20 2a 6c 69 73 74 2c 20 | 48 61 6e 64 6c 65 20 76 | *list, |Handle v|
|000005a0| 61 6c 2c 20 6c 6f 6e 67 | 20 6e 29 20 7b 0d 09 0d |al, long| n) {...|
|000005b0| 09 72 65 74 75 72 6e 20 | 28 49 41 43 70 75 73 68 |.return |(IACpush|
|000005c0| 62 69 6e 61 72 79 69 74 | 65 6d 20 28 6c 69 73 74 |binaryit|em (list|
|000005d0| 2c 20 76 61 6c 2c 20 74 | 79 70 65 54 61 62 6c 65 |, val, t|ypeTable|
|000005e0| 2c 20 6e 29 29 3b 0d 09 | 7d 20 2f 2a 49 41 43 70 |, n));..|} /*IACp|
|000005f0| 75 73 68 74 61 62 6c 65 | 69 74 65 6d 2a 2f 0d 0d |ushtable|item*/..|
|00000600| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00000690| 20 6b 65 79 44 69 72 65 | 63 74 4f 62 6a 65 63 74 | keyDire|ctObject|
|000006a0| 2c 20 74 79 70 65 52 47 | 42 43 6f 6c 6f 72 2c 20 |, typeRG|BColor, |
|000006b0| 0a 69 61 63 74 61 62 6c | 65 2e 63 01 02 00 00 00 |.iactabl|e.c.....|
|000006c0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|000006d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 a9 81 44 d8 00 00 | 00 00 00 00 01 92 74 75 |....D...|......tu|
|00000700| 72 6e 20 28 65 63 20 3d | 3d 20 6e 6f 45 72 72 29 |rn (ec =|= noErr)|
|00000710| 3b 0d 09 7d 20 2f 2a 49 | 41 43 72 65 74 75 72 6e |;..} /*I|ACreturn|
|00000720| 52 47 42 43 6f 6c 6f 72 | 2a 2f 0d 0d 0d 42 6f 6f |RGBColor|*/...Boo|
|00000730| 6c 65 61 6e 20 49 41 43 | 67 65 74 52 47 42 43 6f |lean IAC|getRGBCo|
|00000740| 6c 6f 72 70 61 72 61 6d | 20 28 4f 53 54 79 70 65 |lorparam| (OSType|
|00000750| 20 6b 65 79 77 6f 72 64 | 2c 20 52 47 42 43 6f 6c | keyword|, RGBCol|
|00000760| 6f 72 20 2a 76 61 6c 29 | 20 7b 0d 09 0d 09 72 65 |or *val)| {....re|
|00000770| 67 69 73 74 65 72 20 4f | 53 45 72 72 20 65 63 3b |gister O|SErr ec;|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 06 | 00 04 00 4c 00 10 01 d6 |........|...L....|
|000007b0| 02 40 00 4c 00 10 01 d6 | 02 40 a8 21 b9 b0 00 00 |.@.L....|.@.!....|
|000007c0| 05 87 00 00 05 87 00 00 | 03 99 01 00 00 00 01 00 |........|........|
|000007d0| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 c5 8a 58 |...L...L|...F...X|
|000007e0| 17 e0 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000007f0| 00 0a 03 ed 00 00 00 00 | 00 00 00 c5 89 24 13 43 |........|.....$.C|
|00000800| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00000810| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+